package beans;

/**
 * Created by xieyicheng on 2014/11/28.
 */
public enum TypeBean {

    ignore(0,"用户"),male(1,"管理员"),female(2,"超级管理员");

    public final int value;

    public final String description;

    private TypeBean(int value, String description){
        this.value = value;
        this.description = description;
    }

    public static String getString(int value){
        for(TypeBean bean : TypeBean.values()){
            if(bean.value == value){
                return bean.description;
            }
        }
        return "unknown";
    }

}